<% add_decidim_page_title(t(".title")) %>

<div class="questionnaire-questions">
  <div class="item_show__header" style="border-bottom: none;">
    <h1 class="item_show__header-title">
        <%= t("decidim.elections.actions.edit") %>
    </h1>
  </div>

  <div class="row column">
    <%= cell "decidim/announcement", t("decidim.elections.admin.questions.form.form_description") %>
  </div>

  <%= render "decidim/elections/admin/elections/tabs_menu" %>

  <div class="grid-cols-1 2xl:mr-80">
    <div class="item__edit-form">
      <%= decidim_form_for(@form, url: update_url, method: :put, html: { id: "questions-election-form", class: "form-defaults form edit_questions" }) do |form| %>
        <%= render partial: "decidim/elections/admin/questions/form", object: form %>
      <% end %>

      <div class="item__edit-sticky">
        <div class="item__edit-sticky-container">
          <%= button_tag t("save", scope: "decidim.elections.admin.elections.form"), class: "button button__sm button__secondary", form: "questions-election-form" %>
        </div>
      </div>
    </div>
    <button class="button button__sm button__transparent-secondary add-question mt-1"><%= t("add_question", scope: "decidim.forms.admin.questionnaires.form") %></button>
  </div>
</div>
